<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Article.aspx.cs" Inherits="Admin_Article" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Add/Edit Articles</title>
    <link rel="stylesheet" href="../css/style-admin.css" media="screen,projection" type="text/css" />

    <script src="../js/tiny_mce/tiny_mce.js" language="javascript" type="text/javascript"></script>

    <script src="../js/prototype.js" language="javascript" type="text/javascript"></script>

    <script language="javascript" type="text/javascript" src="../js/admin/article.js"></script>
</head>
<body>
    <form id="frmAdminArticles" runat="server">
    <table width="600px">
            <tr>
                <td colspan="2" align="center" valign="middle">
                    <h1>
                        Add/Edit Articles</h1><a href="../" target="_blank">View Site</a>
                </td>
            </tr>
             <tr>
                <td width="150px" align="right">
                    Page:
                </td>
                <td width="450px">
                    <asp:DropDownList ID="cmbPages" runat="server" Width="168px" EnableViewState="False" CssClass="text">
                    </asp:DropDownList>
                    <input id="txtArticle_Id" runat="server" type="hidden" /></td>
            </tr>
            <tr>
                <td width="150px" align="right">
                    Title:
                </td>
                <td width="450px">
                    <input id="txtTitle" runat="server" type="text" class="text" size="25" />
                    0-100 Chars.</td>
            </tr>
           
            <tr>
                <td align="right" valign="top">
                    Content:
                </td>
                <td valign="middle">
                    <div runat="server" id="richtext" style="float:left;width: 450px; height: 300px; border: solid 1px #bebebe"
                        onclick="enableEdit('richtext');">
                    </div>
                </td>
            </tr>
            <tr>
                <td align="right">
                    Date Added:
                </td>
                <td>
                    <input runat="server" id="txtDate_Added" type="text" class="text" size="25" />
                    Date field ( yyyy-MM-dd HH:mm:ss ).</td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input id="btnSubmit" type="button" value="Submit" onclick="enterValues();" style="font-size: 20px; width: 126px; height: 45px" />
                    <div id="loadermsg">
                    </div>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
